@import url(https://fonts.googleapis.com/css?family=Open+Sans:600);
.frame {
  position: absolute;
  width: 400px;
  height: 400px;
  inset: 0;
  margin: auto;
  box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  background-color: #4a627a;
  color: #fff;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.menu-icon {
  position: absolute;
  width: 50px;
  z-index: 2;
  height: 26px;
  inset: 0;
  margin: auto;
  cursor: pointer;
}
.menu-icon .line-top, .menu-icon .line-bottom {
  position: absolute;
  width: 50px;
  height: 4px;
  top: 0;
  left: 0;
  background-color: #fff;
  animation: line-top-close 1s ease both;
}
.menu-icon .line-bottom {
  top: initial;
  bottom: 0;
  animation: line-bottom-close 1s ease both;
}
.menu-icon.active {
  pointer-events: none;
}
.menu-icon.active .line-top, .menu-icon.active .line-bottom {
  animation: line-top-open 1s ease both;
}
.menu-icon.active .line-bottom {
  animation: line-bottom-open 1s ease both;
}
.menu-icon.paused .line-top,
.menu-icon.paused .line-bottom {
  animation: none;
}

.menu {
  position: absolute;
  width: 300px;
  height: 20px;
  inset: 0;
  margin: auto;
  padding: 0 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease-in-out;
}
.menu.active {
  opacity: 1;
  pointer-events: all;
  transition: all 0.5s ease-in-out 0.5s;
}
.menu ul {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 20px;
  width: 280px;
  margin: 0;
  padding: 0;
}
.menu ul li {
  position: relative;
  display: block;
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.menu ul li:hover {
  opacity: 0.6;
}

@keyframes line-top-open {
  0% {
    transform: translate3d(0, 0, 0) scaleY(1) scaleX(1);
  }
  40% {
    transform: translate3d(0, -20px, 0) scaleY(0.5) scaleX(1);
  }
  100% {
    transform: translate3d(0, -20px, 0) scaleY(0.5) scaleX(6);
  }
}
@keyframes line-bottom-open {
  0% {
    transform: translate3d(0, 0, 0) scaleY(1) scaleX(1);
  }
  40% {
    transform: translate3d(0, 20px, 0) scaleY(0.5) scaleX(1);
  }
  100% {
    transform: translate3d(0, 20px, 0) scaleY(0.5) scaleX(6);
  }
}
@keyframes line-top-close {
  0% {
    transform: translate3d(0, -20px, 0) scaleY(0.5) scaleX(6);
  }
  60% {
    transform: translate3d(0, -20px, 0) scaleY(0.5) scaleX(1);
  }
  100% {
    transform: translate3d(0, 0, 0) scaleY(1) scaleX(1);
  }
}
@keyframes line-bottom-close {
  0% {
    transform: translate3d(0, 20px, 0) scaleY(0.5) scaleX(6);
  }
  60% {
    transform: translate3d(0, 20px, 0) scaleY(0.5) scaleX(1);
  }
  100% {
    transform: translate3d(0, 0, 0) scaleY(1) scaleX(1);
  }
}